//排序
export function compare(obj1, obj2) {
    var val1 = obj1.problemNum
    var val2 = obj2.problemNum
    if(val1 < val2) {
        return 1
    }
    else if(val1 > val2) {
        return -1
    }
    else {
        return 0 
    }
}

//获取选择数据
export function SelectionChange(rowData, levelData) {
    var j = 0
    var unSelectData = []
      for(var i in rowData) {
        unSelectData[j] = rowData[i].problemName
        j++
      }
      unSelectData = levelData.filter(item => unSelectData.indexOf(item) == -1)
      return unSelectData
}
